package com.duapk.common;

import java.util.List;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

/**
 * 搜索的结果封装对象
 * 
 * @author yangfeng
 * 
 */
public class SearchResult implements java.io.Serializable {

	private static final long serialVersionUID = 2294573437314933792L;

	/**
	 * 总记录数
	 */
	@Expose
	@SerializedName(value = "TotalItem")
	private int totalItem;

	/**
	 * 当前的记录数
	 */
	@Expose
	@SerializedName(value = "CurrentItem")
	private int currentItem;

	@Expose
	@SerializedName(value = "ResultList")
	private List<Result> resultList;

	public int getTotalItem() {
		return totalItem;
	}

	public void setTotalItem(int totalItem) {
		this.totalItem = totalItem;
	}

	public int getCurrentItem() {
		return currentItem;
	}

	public void setCurrentItem(int currentItem) {
		this.currentItem = currentItem;
	}

	public List<Result> getResultList() {
		return resultList;
	}

	public void setResultList(List<Result> resultList) {
		this.resultList = resultList;
	}
	
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}
